package util;

import java.awt.event.KeyEvent;

public class GameUtil {
	public final static int GAME_SCREEN_WIDTH = 1024;
	public final static int GAME_SCREEN_HEIGHT = 650;
	
	public final static int TANK_MOVE_SPEED = 200;
	public final static int TANK_GUN_ROTATE_SPEED = 50;
	
	public final static int TANK_WIDTH = 166;
	public final static int TANK_HEIGHT = 52;
	
	public final static int FIRING_SPEED = 600;
	public final static int PROJECTILE_WIDTH = 12;
	
	
	
	
	public final static int PLAYER1_INIT_X = 0;
	public final static int PLAYER1_INIT_Y = GAME_SCREEN_HEIGHT-TANK_HEIGHT/2-100;
	public final static int PLAYER2_INIT_X = GAME_SCREEN_WIDTH - TANK_WIDTH;
	public final static int PLAYER2_INIT_Y = GAME_SCREEN_HEIGHT-TANK_HEIGHT/2-100;	
	public final static String LOGGING_CONFIG_URL = "logging.config";
	
	//key events
	public final static int PLAYER_ONE_RIGHT = KeyEvent.VK_D;
	public final static int PLAYER_ONE_LEFT = KeyEvent.VK_A;
	public final static int PLAYER_ONE_UP = KeyEvent.VK_W;
	public final static int PLAYER_ONE_DOWN = KeyEvent.VK_S;
	public final static int PLAYER_ONE_FIRE = KeyEvent.VK_SPACE;
	
	public final static int PLAYER_TWO_RIGHT = KeyEvent.VK_RIGHT;
	public final static int PLAYER_TWO_LEFT = KeyEvent.VK_LEFT;
	public final static int PLAYER_TWO_UP = KeyEvent.VK_UP;
	public final static int PLAYER_TWO_DOWN = KeyEvent.VK_DOWN;
	public final static int PLAYER_TWO_FIRE = KeyEvent.VK_PAGE_UP;
	
	public static enum ENTITY_ACTION
	{
		moveUp, moveDown, moveLeft, moveRight;
	}
	
}
